package com.youngjun.user.pojo.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.youngjun.common.pojo.vo.support.BaseVO;

public class DepartmentVO extends BaseVO<DepartmentVO> {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String name;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long organizationId;

    public Long getId() {
        return id;
    }

    public DepartmentVO setId(Long id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public DepartmentVO setName(String name) {
        this.name = name;
        return this;
    }

    public Long getParentId() {
        return parentId;
    }

    public DepartmentVO setParentId(Long parentId) {
        this.parentId = parentId;
        return this;
    }

    public Long getOrganizationId() {
        return organizationId;
    }

    public DepartmentVO setOrganizationId(Long organizationId) {
        this.organizationId = organizationId;
        return this;
    }

}